/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: nu uc
 * License Type: Evaluation
 */
package org.testis.orm.classes;

import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class T_bed_devicegroup_detailsDetachedCriteria extends
	AbstractORMDetachedCriteria {
    public final IntegerExpression id;
    public final StringExpression macAddress;
    public final StringExpression ip;
    public final IntegerExpression port;
    public final BooleanExpression isRemote;
    public final StringExpression name;

    public T_bed_devicegroup_detailsDetachedCriteria() {
	super(
		org.testis.orm.classes.T_bed_devicegroup_details.class,
		org.testis.orm.classes.T_bed_devicegroup_detailsCriteria.class);
	id = new IntegerExpression("id", this.getDetachedCriteria());
	macAddress = new StringExpression("macAddress",
		this.getDetachedCriteria());
	ip = new StringExpression("ip", this.getDetachedCriteria());
	port = new IntegerExpression("port", this.getDetachedCriteria());
	isRemote = new BooleanExpression("isRemote", this.getDetachedCriteria());
	name = new StringExpression("name", this.getDetachedCriteria());
    }

    public T_bed_devicegroup_detailsDetachedCriteria(
	    DetachedCriteria aDetachedCriteria) {
	super(
		aDetachedCriteria,
		org.testis.orm.classes.T_bed_devicegroup_detailsCriteria.class);
	id = new IntegerExpression("id", this.getDetachedCriteria());
	macAddress = new StringExpression("macAddress",
		this.getDetachedCriteria());
	ip = new StringExpression("ip", this.getDetachedCriteria());
	port = new IntegerExpression("port", this.getDetachedCriteria());
	isRemote = new BooleanExpression("isRemote", this.getDetachedCriteria());
	name = new StringExpression("name", this.getDetachedCriteria());
    }

    public T_bed_devicegroupDetachedCriteria createGroupCriteria() {
	return new T_bed_devicegroupDetachedCriteria(createCriteria("Group"));
    }

    public T_bed_testpcDetachedCriteria createPcCriteria() {
	return new T_bed_testpcDetachedCriteria(createCriteria("Pc"));
    }

    public T_bed_osDetachedCriteria createOsCriteria() {
	return new T_bed_osDetachedCriteria(createCriteria("Os"));
    }

    public T_bed_devicegroup_details uniqueT_bed_devicegroup_details(
	    PersistentSession session) {
	return (T_bed_devicegroup_details) super.createExecutableCriteria(
		session).uniqueResult();
    }

    public T_bed_devicegroup_details[] listT_bed_devicegroup_details(
	    PersistentSession session) {
	List list = super.createExecutableCriteria(session).list();
	return (T_bed_devicegroup_details[]) list
		.toArray(new T_bed_devicegroup_details[list.size()]);
    }
}
